package com.zkh.myframe.exception;

/**
 * 基本异常类，继承自RuntimeException
 * @author zkh
 *
 */
public class BaseException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	
	//错误码
	private int errorCode = -1;
	public int getErrorCode() {
		return errorCode;
	}

	public BaseException(int errorCode) {
		super();
		this.errorCode = errorCode;
	}
	public BaseException(String message, int errorCode, Throwable cause) {
		super(message, cause);
		this.errorCode = errorCode;
	}
	public BaseException(String message, int errorCode) {
		super(message);
		this.errorCode = errorCode;
	}
	public BaseException(Throwable cause, int errorCode) {
		super(cause);
		this.errorCode = errorCode;
	}
	public BaseException() {
		super();
	}
	
	public BaseException(String message, Throwable cause) {
		super(message, cause);
	}
	public BaseException(String message) {
		super(message);
	}
	public BaseException(Throwable cause) {
		super(cause);
	}
	
}
